package com.situ.crm.controller;


import com.situ.crm.service.IRoleService;
import com.situ.crm.util.JSONResult;
import com.situ.crm.vo.LayUISelectMVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Gao
 * @since 2021-11-03
 */
@Controller
@RequestMapping("/role")
public class RoleController {
    @Autowired
    private IRoleService roleService;

    @RequestMapping("/selectAllRoles")
    @ResponseBody
    public JSONResult selectAllRoles() {
       List<LayUISelectMVO> list = roleService.selectAllRoles();
        return JSONResult.ok(list);
    }

}

